#include<bits/stdc++.h>
using namespace std;
#define int long long

int a[10005];

signed main() {
	int n;
	cin >> n;
	int sum = 0;
	for (int i = 1; i <= n; i++)
		cin >> a[i], sum += a[i];
	cout << *max_element(a + 1, a + n + 1) << endl;
	cout << *min_element(a + 1, a + n + 1) << endl;
	cout << fixed << setprecision(2) << 1.0 * sum / n;
	return 0;
}
